/**********************************************************
 * Role.java.java 
 * Created by Ashutosh
 * Last modified Date: Sep 18, 2008 11:01:08 AM by Ashutosh
 * Revision: <svn revision #> 
 * Version : 0.1
 * Copyright (c) 2008 - 2009 cyberThink Infotech Pvt. Ltd., All rights reserved.
 **********************************************************/

package com.printeverywhere.dto;

import java.util.HashSet;
import java.util.Set;

/**
 * Role entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Role implements java.io.Serializable {

	// Fields

	/** The role id. */
	private Integer roleId;
	
	/** The role. */
	private String role;
	
	/** The admins. */
	private Set admins = new HashSet(0);

	// Constructors

	/**
	 * default constructor.
	 */
	public Role() {	}

	/**
	 * minimal constructor.
	 * 
	 * @param role the role
	 */
	public Role(String role) {
		this.role = role;
	}

	/**
	 * full constructor.
	 * 
	 * @param role the role
	 * @param admins the admins
	 */
	public Role(String role, Set admins) {
		this.role = role;
		this.admins = admins;
	}

	// Property accessors

	/**
	 * Gets the role id.
	 * 
	 * @return the role id
	 */
	public Integer getRoleId() {
		return this.roleId;
	}

	/**
	 * Sets the role id.
	 * 
	 * @param roleId the new role id
	 */
	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	/**
	 * Gets the role.
	 * 
	 * @return the role
	 */
	public String getRole() {
		return this.role;
	}

	/**
	 * Sets the role.
	 * 
	 * @param role the new role
	 */
	public void setRole(String role) {
		this.role = role;
	}

	/**
	 * Gets the admins.
	 * 
	 * @return the admins
	 */
	public Set getAdmins() {
		return this.admins;
	}

	/**
	 * Sets the admins.
	 * 
	 * @param admins the new admins
	 */
	public void setAdmins(Set admins) {
		this.admins = admins;
	}
}